package com.example.fang.demodruid.controller;

import com.example.fang.demodruid.entity.User;
import com.example.fang.demodruid.entity.test.EnvConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @describe:
 * @author:01410843
 * @Date 2022/5/13 10:07
 **/
@RestController
@RequestMapping("/test/")
@Slf4j
public class TestController {


    @RequestMapping("/hello")
    public String test(@RequestBody User user){
        System.out.println(user);
        return "success";
    };

    @RequestMapping("/hello1")
    public String test(){
        String str=EnvConfig.secretType;
        System.out.println("获取到的secretType"+str);
        return str;
    };
}
